package com.probox.common.entity.vo.customer;

import com.probox.common.entity.domain.customer.CustomerFund;
import lombok.Data;

import java.util.List;

/**
 * 客户收益对象vo customer_fund
 *
 * @author zsy
 * @date 2021-06-18
 */
@Data
public class CustomerFundVo extends CustomerFund {
    //客户姓名
    private String customerName;

    private String contactMan;

    private String phone;

    private Integer pageSize;

    private Integer pageNum;

    //客户等级id
    private Long levelUid;

    //客户等级
    private String levelName;

    //付费客户等级id
    private Long payLevelUid;

    //付费客户等级
    private String payLevelName;

    private Long minallProfit;
    private Long maxallProfit;
    private Long minFreezeProfit;
    private Long maxFreezeProfit;
    private Long minAllScore;
    private Long maxAllScore;
    private Long minScore;
    private Long maxScore;
    private Long minFreezeScore;
    private Long maxFreezeScore;
    private Long minallBalance;
    private Long maxAllBalance;
    private Long minAllRedBag;
    private Long maxAllRedBag;
    private Long minAllFans;
    private Long maxAllFans;
    private Long minAllFansSecond;
    private Long maxAllFansSecond;

    private Long storeId;


    private List<CustomerLevelInfoVo> customerLevelInfoVoList;

    private String remark;

    public Long getMinallProfit() {
        if (minallProfit == null) return null;
        return minallProfit*100L;
    }

    public Long getMaxallProfit() {
        if (maxallProfit == null) return null;
        return maxallProfit*100L;
    }


    public Long getMinFreezeProfit() {
        if (minFreezeProfit == null) return null;
        return minFreezeProfit*100;
    }

    public Long getMaxFreezeProfit() {
        if (maxFreezeProfit == null) return null;
        return maxFreezeProfit*100;
    }

    public Long getMinallBalance() {
        if (minallBalance == null) return null;
        return minallBalance*100;
    }

    public Long getMaxAllBalance() {
        if (maxAllBalance == null) return null;
        return maxAllBalance*100;
    }
}
